package com.kaili.basic.mapper;


import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.RentQueryDto;
import com.kaili.basic.pojo.entity.Rent;
import com.kaili.basic.pojo.entity.RentExport;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface RentMapper {
    //添加租金
    int addRent(Rent rent);

    //删除租金
    int deleteRent(Rent rent);

    //删除租金
    int deleteRents(Map<String,Object> map);

    //修改租金
    int updateRent(Rent rent);

    //条件查询获取租金信息
    List<Rent> queryRent(Pagination page, Rent rent);

    //查询重复
    Integer querySupplierAndWarehouse(Rent rent);

    //id查询获取租金信息
    Rent queryRentById(Long rentId);

    //导出
    List<RentExport> queryRentExport(RentQueryDto rentQueryDto);
}
